<!--{template @admin/header}--> <table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder"> <tr class="header"> <td colspan="9"><b>首页轮播广告管理</b></td> </tr>
{if !empty($ad_list)}
<tr> <td colspan="5"> <div class="tr_select">请选择城市：
<select name="city_id" class="isearcher_select_list" onchange="window.location.href='?mod=tttuangou&code=lunboad&city_id='+this.value">
 <option value="false" {if $city_id=='false'}selected{/if}>不限城市</option>
{loop $city $i $value}
<option value="{$value['cityid']}" {if $city_id==$value['cityid']}selected{/if}>{$value['cityname']}</option>
{/loop}
</select></div> </td> </tr>
{/if}
<tr class="tr_nav"> <td width="20%">广告图片</td> 
<td width="8%">广告链接</td> <td width="10%">所属城市</td> <td width="8%">排序</td>  <td width="10%" align="center">管理</td> </tr> <!--{if empty($ad_list)}--> <tr>
  <td colspan="9">暂时还没有广告，请<a href="?mod=tttuangou&code=addlunbo">点此添加广告</a>。</td></tr> <!--{/if}--> <!--{loop $ad_list $i $value}--> <tr onmouseover="this.className='tr_hover'" onmouseout="this.className='tr_normal'"> <td>{$value['ad_img']}<br/></td> <td>{$value['ad_link']}</td> <td>{$newcity[$value[city_id]]}</td> <td>{$value['sort']}</td>  <td align="center"><a href="?mod=tttuangou&code=editlunbo&id={$value['ad_id']}">修改</a> - <a href="#" title="点此删除该广告" onclick="if(confirm('您确认要删除该广告吗？')){window.location.href='?mod=tttuangou&code=dellunbo&id={$value['ad_id']}'}">删除</a></td> </tr> <!--{/loop}--> <tr><td colspan="9">
请注意：</td></tr> </table> <a href="?mod=tttuangou&code=addlunbo" class="back1 back2">添加广告</a> <br> <center>
{$page_arr}
</center> 
{template @admin/footer} 